import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Test',
      component: ()=>import('./../components/test')
    },
    {
      path: '/login',
      name: 'Login',
      component: ()=>import('./../views/login')
    },
    {
      path: '/register',
      name: 'Register',
      component: ()=>import('./../views/register')
    },
    {
      path: '/index',
      name: 'Index',
      component: ()=>import('./../views/index'),
      children: [{
        path: 'userInformation',
        name: 'UserInformation',
        component: ()=>import('./../views/userCenter/userInformation')
      },{
        path: 'modification',
        name: 'Modification',
        component: ()=>import('./../views/userCenter/modification')
      },{
        path: 'module_11',
        name: 'Module_11',
        component: ()=>import('./../views/module_1/module_11')
      }],
      meta:{
        require: true
      }
    }
  ]
})
